<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
</style>
<link rel="stylesheet" href="${host_url}/css/app/common.css">
<link rel="stylesheet"  href="${host_url}/css/app/member_center.css">
<script src="${host_url}/js/app/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<title>会员中心</title>
<script type="text/javascript">

  document.getElementsByTagName('html')[0].style.fontSize = document.documentElement.clientWidth/50 + 'px';
 	/* <span class="bottom col"> */
  var levelupinfo_url = "";
  var membershipupgrade_url = "";
  var masterinfo_url = "";
  $(function(){
	  
	 /*  var myDate = new Date();
	  var month=myDate.getMonth()+1;
	  var month1=myDate.getMonth();  一个月前 */

	  
	 /*
	  month1 = month1+"月总销量";
	  month = month+"月总销量"; 
	  
	  $("#one_months_ago").html(month1);
	  $("#now_months").html(month); */
	  
	  /*本月及上月业绩总和  */
	  if(parseInt($("#member_level_num").val())>= parseInt($("#member_level_num_need").val())){
		  $("#level_num").removeClass("col");
	  }
	  /*本月及上月业绩总和  */
	  if((parseInt($("#member_first_month_consume").val())+parseInt($("#member_second_month_consume").val())) >= parseInt($("#member_second_month_consume_need").val())){
		  $("#month_consume1").removeClass("col");
	  }
	 /*  if(parseInt($("#member_children_num").val()) >= parseInt($("#member_children_num_need").val())){
		  $("#children_num").addClass("col");
	  } */
	  /*本月业绩  */
	  if(parseInt($("#member_second_month_consume").val()) >= parseInt($("#member_first_month_consume_need").val())){
		  $("#month_consume2").removeClass("col");
	  }
	  /*本月业绩  */
	  if(parseInt($("#member_second_month_consume").val()) >= parseInt($("#member_first_time_consume").val())){
		  $("#month_consume123").removeClass("col");
	  }
	  
	  levelupinfo_url = $("#levelupinfo_url").val();
	  membershipupgrade_url = $("#membershipupgrade_url").val();
	  masterinfo_url = $("#masterinfo_url").val();

  });
  
 
 

/*普通和高级会员 会员升级*/  
function fn_getMember(){
	window.webkit.messageHandlers.ios_open_page.postMessage('WKViewController:::url->'+levelupinfo_url+':::webTitle->会员升级:::isRefresh->YES');
}

/*代理级别以上会员 会员升级*/  
function fn_membershipUpgrade(){
	window.webkit.messageHandlers.ios_open_page.postMessage('WKViewController:::url->'+membershipupgrade_url+':::webTitle->会员升级:::isRefresh->YES');
}
/*总代理进阶总代理考核*/
function fn_MasterInfo() {
	window.webkit.messageHandlers.ios_open_page.postMessage('WKViewController:::url->'+masterinfo_url+':::webTitle->${masterName}专区:::isRefresh->YES');
	
} 
/*代理级别开始立即充值  */
function fn_GoMemberTicketRecharge() {
	window.webkit.messageHandlers.ios_open_page.postMessage('CouponChargeViewController');
}
/* 普通会员升级高级会员买礼包 */
function fn_goMemberLevelup(level) {
	window.webkit.messageHandlers.ios_open_page.postMessage('MemberUpgradeViewController:::levelId->'+level);
}
</script>
</head>
<body style="font-size:14px;">			
<input type="hidden" id="member_level_num" value="${member.level_num}" />
<input type="hidden" id="member_level_num_need" value="${member.level_num_need}" />
<input type="hidden" id="member_first_month_consume" value="${member.first_month_consume}" />
<input type="hidden" id="member_first_month_consume_need" value="${member.first_month_consume_need}" />
<input type="hidden" id="member_children_num" value="${member.children_num}" />
<input type="hidden" id="member_children_num_need" value="${member.children_num_need}" />
<input type="hidden" id="member_second_month_consume" value="${member.second_month_consume}" />
<input type="hidden" id="member_second_month_consume_need" value="${member.second_month_consume_need}" />
<input type="hidden" id="member_first_time_consume" value="${member.first_time_consume}" />

<input type="hidden" id="levelupinfo_url" value="${levelupinfo_url}" />
<input type="hidden" id="membershipupgrade_url" value="${membershipupgrade_url}" />
<input type="hidden" id="masterinfo_url" value="${masterinfo_url}" />

<div id="content">
    <ul class="menu-group po-r">
        <li class="head-prortrait leftArea">
	         <c:choose>
			   <c:when test="${member.logo !=null}">  
			        <img src="${member.logo}" alt="" />    
			   </c:when>
			   <c:otherwise> 
			     	<img src="${host_url}/img/u1031.png" alt="" />
			   </c:otherwise>
			 </c:choose>
        </li>
        <li class="prompt leftArea flo-no">
            <p class="po-r">${member.nick_name }</p>
            <c:if test="${member.level==127}"><p class="po-r">开通付费会员，尊享特权</p></c:if>
          	<c:if test="${member.level==126}"><p class="po-r"><span>当前会员等级：</span><span class="po-r"><img src="${host_url}/img/v_img.png" alt=""><span class="po-a v-num">1</span></span>${member.level_name}</p></c:if>
            <c:if test="${member.identity==118 and member.level !=122 and member.level !=123}"><p class="po-r"><span>当前会员等级：</span><span class="po-r"><img src="${host_url}/img/v_img.png" alt=""><span class="po-a v-num">${member.dic_other}</span></span>${member.level_name}</p> </c:if>
            <c:if test="${member.level==123}"><p class="po-r"><span>当前会员等级：</span><span class="po-r"><img src="${host_url}/img/v_img.png" alt=""><span class="po-a v-num">5</span></span>${member.level_name}<span class="po-a v-num">1</span></p></c:if>
            <c:if test="${member.level==122}"><p class="po-r"><span>当前会员等级：</span><span class="po-r"><img src="${host_url}/img/v_img.png" alt=""><span class="po-a v-num">6</span></span>${member.level_name}<span class="po-a v-num">1</span></p></c:if>
            <c:if test="${member.level==121 or member.level==200 or member.level==201}"><p class="po-r"><span>当前会员等级：</span><span class="po-r"><img src="${host_url}/img/v_partner.png" alt="" class="img-bg-none"><!-- span class="po-a v-num">1</span --></span>${member.level_name}</p></c:if>
        </li>
		  <%--  <c:if test="${member.level==127}">  
	  		  <c:if test="${'ios'==os}">
	  		  	<li class="open-member po-a" onclick="fn_goMemberLevelup(${member.level})">开通付费会员</li>
	  		  </c:if>
	  		  <c:if test="${'android'==os}">
	  		  	<li class="open-member po-a" onclick="android.openPage('com.uniplaza.fenx.mmine.member.activity.MemUpDeAddrActivity:::levelId->${member.level}')">开通付费会员</li>
	  		  </c:if>
	  		   <c:if test="${'wechat'==os ||'web'==os}">
	  		  	<li class="open-member po-a" onclick="goMemberLevelupForWE(${member.level})">开通付费会员</li>
	  		  </c:if>
		   </c:if> --%>
		   <c:if test="${member.level==126 or member.level==127}">  
		    	<c:if test="${'ios'==os}">
		        	<li class="open-member po-a" onclick="fn_getMember()">开通付费会员</li>
		        </c:if>
		    	<c:if test="${'wechat'==os ||'web'==os}">
		        	<li class="open-member po-a" onclick="getMemberForWE(${member.level})"   id='{"name":"toLevelUpBtn", "params": {"level":${member.level }}}'>开通付费会员</li>
		        </c:if>
		    	<c:if test="${'android'==os}">
		        	<li class="open-member po-a"  onclick="android.startUrl('会员升级','${levelupinfo_url}')">开通付费会员</li>
		        </c:if>
		   </c:if>
		   <c:if test="${member.identity==118 and member.level !=122}">
		        <c:if test="${'ios'==os}">
		        	 <li class="open-member po-a" onclick="fn_membershipUpgrade()">升级会员</li>
		        </c:if>
		        <c:if test="${'wechat'==os ||'web'==os}">
		        	 <li class="open-member po-a" onclick="membershipUpgradeForWE(${member.level})"   id='{"name":"toLevelUpBtn", "params": {"level":${member.level }}}'>升级会员</li>
		        </c:if>
		    	<c:if test="${'android'==os}">
		        	<li class="open-member po-a"  onclick="android.startUrl('会员升级','${membershipupgrade_url}')">升级会员</li>
		        </c:if>
		   </c:if>
    </ul>
    <!--  普通会员 -->
    <c:if test="${member.level==127}">
     	<c:if test="${ member.special_yn =='Y'}">
		   <h2>还款状态</h2>
			<ul class="voucher voucher2">
		        <li class="clearfix">
		            <p class="leftArea">已还本金<fmt:formatNumber value="${member.special_repay-member.lock_cash}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		            <p class="rightArea">还需还款<fmt:formatNumber value="${member.special_cash-(member.special_repay-member.lock_cash)}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		        </li>
		        <li class="po-r proportion">
		            <div  style="width:100%;position:relative;">
			        	<p>
			            	<span class="po-a progress-bar" style="width:${((member.special_repay-member.lock_cash)/member.special_cash)*100}%;">
			            		<span class="po-a dot"></span>
			            	</span>
			            </p>
		            </div>
		            <p class="po-a progress-bar-2"></p>
		        </li>
		    </ul>
	    </c:if>
	    <div class="privilege-wrap">
	        <ul >
	            <h2>付费会员进阶特权</h2>
	            <c:forEach items="${upAwardList}" var="c">
		            <c:if test="${c.awardId == 1}">
			            <li class="distinct clearfix po-r">
			                <p class="po-a icon-prize">零</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 2}">
			            <li class="distinct clearfix po-r">
			                 <p class="po-a icon-prize">活</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 3}">
			            <li class="distinct clearfix po-r">
			                <p class="po-a icon-prize">助</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
	            </c:forEach>
	        </ul>
	    </div>
	     <c:if test="${'ios'==os}">
		      <div class="btn-open" onclick="fn_getMember()"><img src="${host_url}/img/u5391.png" alt="">开通付费会员</div>
        </c:if>
	    <c:if test="${'wechat'==os ||'web'==os}">
		      <div class="btn-open" onclick="getMemberForWE(${member.level})"   id='{"name":"toLevelUpBtn", "params": {"level":${member.level }}}'><img src="${host_url}/img/u5391.png" alt="">开通付费会员</div>
        </c:if>
    	<c:if test="${'android'==os}">
        	 <div class="btn-open" onclick="android.startUrl('会员升级','${levelupinfo_url}')"><img src="${host_url}/img/u5391.png" alt="">开通付费会员</div>
        </c:if>
	    
    </c:if>
     <!--  高级会员  -->
    <c:if test="${member.level==126}">
     	<c:if test="${ member.special_yn =='Y'}">
		   <h2>还款状态</h2>
			<ul class="voucher voucher2">
		        <li class="clearfix">
		            <p class="leftArea">已还本金<fmt:formatNumber value="${member.special_repay-member.lock_cash}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		            <p class="rightArea">还需还款<fmt:formatNumber value="${member.special_cash-(member.special_repay-member.lock_cash)}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		        </li>
		        <li class="po-r proportion">
		            <div  style="width:100%;position:relative;">
			        	<p>
			            	<span class="po-a progress-bar" style="width:${((member.special_repay-member.lock_cash)/member.special_cash)*100}%;">
			            		<span class="po-a dot"></span>
			            	</span>
			            </p>
		            </div>
		            <p class="po-a progress-bar-2"></p>
		        </li>
		    </ul>
	    </c:if>
	    <div class="privilege-wrap">
	        <ul >
	            <h2>当前会员特权</h2>
	            <c:forEach items="${curAwardList}" var="c">
		            <c:if test="${c.awardId == 1}">
			            <li class="distinct clearfix po-r current">
			               <p class="po-a icon-prize">零</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
	            </c:forEach>
	
	            <h2>付费会员进阶特权</h2>
	            <c:forEach items="${upAwardList}" var="c">
		            <c:if test="${c.awardId == 2}">
			            <li class="distinct clearfix po-r">
			                <p class="po-a icon-prize">活</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 3}">
			            <li class="distinct clearfix po-r">
			                <p class="po-a icon-prize">助</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
	            </c:forEach>
	        </ul>
	    </div>
	   
	    <c:if test="${'ios'==os}">
		      <div class="btn-open" onclick="fn_getMember()"><img src="${host_url}/img/u5391.png" alt="">开通付费会员</div>
        </c:if>
	    <c:if test="${'wechat'==os ||'web'==os}">
		      <div class="btn-open" onclick="getMemberForWE(${member.level})"><img src="${host_url}/img/u5391.png" alt=""   id='{"name":"toLevelUpBtn", "params": {"level":${member.level }}}'>开通付费会员</div>
        </c:if>
    	<c:if test="${'android'==os}">
        	 <div class="btn-open" onclick="android.startUrl('会员升级','${levelupinfo_url}')"><img src="${host_url}/img/u5391.png" alt="">开通付费会员</div>
        </c:if>
    	</c:if>
    <!-- 初,中,中高级代理-->
	<c:if test="${member.identity==118 and member.level !=122 and member.level !=123}">
	    <ul class="voucher">
	        <li class=" clearfix">
	            <p class="leftArea">历史购买${ticket_name} ${member.cur_ticket }</p>
	            <p class="rightArea">升级还需 ${member.next_ticket-member.cur_ticket  }</p>
	        </li>
	        <li class="po-r proportion">
	        	<div  style="width:93.9%;position:relative;height:10px;">
		        	<p>
		            	<span class="po-a progress-bar" style="width:${(member.cur_ticket/member.next_ticket)*100}%;">
		            		<span class="po-a dot"></span>
		            	</span>
		            </p>
	            </div>
	            <p class="po-a progress-bar-2" ></p>
	            <p class="po-a dot-2"></p>
	        </li>
	        <li class="clearfix agent">
	            <p class="leftArea">${member.level_name}</p>
	            <p class="rightArea">${member.up_level_name}</p>
	        </li>
	    </ul>
	<%--      <c:if test="${ member.special_yn =='Y'}">
		   <h2>还款状态</h2>
			<ul class="voucher voucher2">
		        <li class="clearfix">
		            <p class="leftArea">已还本金<fmt:formatNumber value="${member.special_repay-member.lock_cash}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		            <p class="rightArea">还需还款<fmt:formatNumber value="${member.special_cash-(member.special_repay-member.lock_cash)}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		        </li>
		        <li class="po-r proportion">
		            <div  style="width:100%;position:relative;">
			        	<p>
			            	<span class="po-a progress-bar" style="width:${((member.special_repay-member.lock_cash)/member.special_cash)*100}%;">
			            		<span class="po-a dot"></span>
			            	</span>
			            </p>
		            </div>
		            <p class="po-a progress-bar-2"></p>
		        </li>
		    </ul>
	    </c:if> --%>
	    <h2>充值优惠</h2>
	    <ul class="recharge">
	        <li class="clearfix">
	            <p class="leftArea inner-1">券</p>
	            <p class="leftArea inner-2">${ticket_name}充值（<fmt:formatNumber value="${member.rate*10}" pattern="#0.0" maxFractionDigits="1"/>折）</p>
	            <c:if test="${'ios'==os}">
	            	<p class="rightArea inner-3" onclick="fn_GoMemberTicketRecharge()">立即充值<span>&gt;</span></p>
	            </c:if>
	            <c:if test="${'android'==os}">
	            	<p class="rightArea inner-3" onclick="android.openPage('com.uniplaza.fenx.mmine.certificate.activity.DeliveryRechargeActivity')">立即充值<span>&gt;</span></p>
	            </c:if>
	            <c:if test="${'wechat'==os ||'web'==os}">
	            	<p class="rightArea inner-3" onclick="GoMemberTicketRechargeForWE()"  id='{"name":"toRechargeTicket", "params": {"level":${member.level }}}'>立即充值<span>&gt;</span></p>
	            </c:if>
	        </li>
	    </ul>
	    <div class="privilege-wrap">
	        <ul >
	            <h2>当前会员特权</h2>
	             <c:forEach items="${curAwardList}" var="c">
		            <c:if test="${c.awardId == 1}">
			            <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">零</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 2}">
			            <li class="distinct clearfix po-r current">
			                 <p class="po-a icon-prize">活</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 3}">
			           <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">助</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
	            </c:forEach>
	        </ul>
	    </div>
    </c:if>
     <!-- 高级代理 -->
    <c:if test="${member.level==123}">
	    <ul class="recharge inner">
	        <li class="clearfix">
	            <p class="leftArea inner-2 distance">${masterName}进阶</p>
	           
	            <c:if test="${'ios'==os}">
		        	 <p class="rightArea inner-3 distance" onclick="fn_MasterInfo()">查看详情<span>&gt;</span></p>
		        </c:if>
	            <c:if test="${'wechat'==os ||'web'==os}">
		        	 <p class="rightArea inner-3 distance" onclick="MasterInfoForWE(${member.level})"   id='{"name":"toMasterInfo", "params": {"level":${member.level }}}'>查看详情<span>&gt;</span></p>
		        </c:if>
		    	<c:if test="${'android'==os}">
		    	 	<p class="rightArea inner-3 distance" onclick="android.startUrl('${masterName}专区','${masterinfo_url}')">查看详情<span>&gt;</span></p>
		        </c:if>
	        </li>
	    </ul>
	    <div class="data-plate">
	        <ul class="clearfix">
	        	<c:if test="${member.master_record!='Y'}">
		            <li class="clearfix ">
		                <div class="leftArea wid-50"><p class=" leftArea bor-r"><span class="top">团队内${member.level_name}及以上</span><span id="level_num" class="bottom col">${member.level_num} / ${member.level_num_need}</span></p></div>
		                <p class=" mar-b leftArea wid-50"><span id="now_months" class="top mar-l">本月业绩</span><span id="month_consume123" class="bottom mar-l col">${member.second_month_consume} / ${member.first_time_consume}</span></p>
		            </li>
		        </c:if>
		        <c:if test="${member.master_record=='Y'}">
		            <li class="clearfix">
		                <div class="leftArea wid-50"><p class=" mar-b leftArea wid-50"><span class="top mar-l">本月业绩</span><span class="bottom mar-l">${member.second_month_consume}</span></p></div>
		                <p class="mar-b leftArea wid-50"><span class="top mar-l">上月业绩</span><span class="bottom mar-l">${member.first_month_consume}</span></p>
		            </li>
		            <li class="clearfix two">
		                <div class="leftArea wid-50"><p class=" leftArea bor-r"><span class="top">本月及上月业绩总和</span><span id="month_consume1" class="bottom col"><fmt:formatNumber value="${member.first_month_consume+member.second_month_consume}" pattern="#0" maxFractionDigits="0"/> / <fmt:formatNumber value="${member.second_month_consume_need}" pattern="#0" maxFractionDigits="0"/></span></p></div>
		        	</li>
		        </c:if>
		        <%--  <li class="clearfix"> 原来的样式
		                <div class="leftArea wid-50"><p class=" leftArea bor-r"><span class="top">直属${expertLevel_name}</span><span id="level_num" class="bottom">${member.level_num} / ${member.level_num_need}</span></p></div>
		                <p class="mar-b leftArea wid-50"><span id="one_months_ago" class="top mar-l">月总销量</span><span id="month_consume1" class="bottom mar-l">${member.first_month_consume} / ${member.first_month_consume_need}</span></p>
		            </li>
		            <li class="clearfix two">
		                <div class="leftArea wid-50"><p class=" leftArea bor-r"><span class="top">邀请好友</span><span id="children_num" class="bottom">${member.children_num} / ${member.children_num_need}</span></p></div>
		                <p class=" mar-b leftArea wid-50"><span id="now_months" class="top mar-l">月总销量</span><span id="month_consume2" class="bottom mar-l">${member.second_month_consume} / ${member.second_month_consume_need}</span></p>
		         </li> --%>
	        </ul>
	    </div>
<%-- 	     <c:if test="${ member.special_yn =='Y'}">
		   <h2>还款状态</h2>
			<ul class="voucher voucher2">
		        <li class="clearfix">
		            <p class="leftArea">已还本金<fmt:formatNumber value="${member.special_repay-member.lock_cash}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		            <p class="rightArea">还需还款<fmt:formatNumber value="${member.special_cash-(member.special_repay-member.lock_cash)}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		        </li>
		        <li class="po-r proportion">
		            <div  style="width:100%;position:relative;">
			        	<p>
			            	<span class="po-a progress-bar" style="width:${((member.special_repay-member.lock_cash)/member.special_cash)*100}%;">
			            		<span class="po-a dot"></span>
			            	</span>
			            </p>
		            </div>
		            <p class="po-a progress-bar-2"></p>
		        </li>
		    </ul>
	    </c:if> --%>
	    <h2>充值优惠</h2>
	    <ul class="recharge">
	        <li class="clearfix">
	            <p class="leftArea inner-1">券</p>
	            <p class="leftArea inner-2">${ticket_name}充值（<fmt:formatNumber value="${member.rate*10}" pattern="#0.0" maxFractionDigits="1"/>折）</p>
	            <c:if test="${'ios'==os}">
	            	<p class="rightArea inner-3" onclick="fn_GoMemberTicketRecharge()">立即充值<span>&gt;</span></p>
	            </c:if>
	            <c:if test="${'wechat'==os ||'web'==os}">
	            	<p class="rightArea inner-3" onclick="GoMemberTicketRechargeForWE()"   id='{"name":"toRechargeTicket", "params": {"level":${member.level }}}'>立即充值<span>&gt;</span></p>
	            </c:if>
	            <c:if test="${'android'==os}">
	            	<p class="rightArea inner-3" onclick="android.openPage('com.uniplaza.fenx.mmine.certificate.activity.DeliveryRechargeActivity')">立即充值<span>&gt;</span></p>
	            </c:if>
	        </li>
	    </ul>
	    <div class="privilege-wrap">
	        <ul >
	            <h2>当前会员特权</h2>
	            <c:forEach items="${curAwardList}" var="c">
		            <c:if test="${c.awardId == 1}">
			            <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">零</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 2}">
			            <li class="distinct clearfix po-r current">
			                 <p class="po-a icon-prize">活</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 3}">
			           <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">助</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
	            </c:forEach>
	        </ul>
	    </div>
    </c:if>
     <!-- 总代理-->
    <c:if test="${member.level==122}">
	    <ul class="recharge inner">
	        <li class="clearfix">
	            <p class="leftArea inner-2 distance">${masterName}考核</p>
	            <c:if test="${'ios'==os}">
		        	<p class="rightArea inner-3 distance" onclick="fn_MasterInfo()">查看详情<span>&gt;</span></p>
		        </c:if>
	            <c:if test="${'wechat'==os ||'web'==os}">
		        	<p class="rightArea inner-3 distance" onclick="MasterInfoForWE(${member.level})" id='{"name":"toMasterInfo", "params": {"level":${member.level }}}'>查看详情<span>&gt;</span></p>
		        </c:if>
		    	<c:if test="${'android'==os}">
		    	 	<p class="rightArea inner-3 distance" onclick="android.startUrl('${masterName}专区','${masterinfo_url}')">查看详情<span>&gt;</span></p>
		        </c:if>
	        </li>
	    </ul>	
	    <div class="data-plate">
	       <ul class="clearfix">
	       <c:if test="${member.plusminus_day==0}">
	       		<li class="clearfix one_1">
	                <div class="leftArea wid-50"><p class=" mar-b leftArea"><span id="now_months" class="top mar-l col">本月业绩</span><span id="month_consume2" class="bottom mar-l col">${member.second_month_consume} / ${member.first_month_consume_need}</span></p></div>
	            </li>
	       </c:if>
	       <c:if test="${member.plusminus_day>0}">
	       		<li class="clearfix">
		            <div class="leftArea wid-50"><p class=" mar-b leftArea wid-50"><span class="top mar-l">本月业绩</span><span class="bottom mar-l">${member.second_month_consume}</span></p></div>
		                <p class="mar-b leftArea wid-50"><span class="top mar-l">上月业绩</span><span class="bottom mar-l">${member.first_month_consume}</span></p>
	            </li>
	            <li class="clearfix two">
	                <div class="leftArea wid-50"><p class=" leftArea bor-r"><span class="top">本月及上月业绩总和</span><span id="month_consume1" class="bottom col"><fmt:formatNumber value="${member.first_month_consume+member.second_month_consume}" pattern="#0" maxFractionDigits="0"/> / <fmt:formatNumber value="${member.second_month_consume_need}" pattern="#0" maxFractionDigits="0"/></span></p></div>
	        	</li>
	       </c:if>
	            <%-- <li class="clearfix">以前的样式 12月5号改以上新版
	                <div class="leftArea wid-50"><p class=" leftArea bor-r"><span class="top"> 直属${expertLevel_name}</span><span id="level_num" class="bottom">${member.level_num} / ${member.level_num_need}</span></p></div>
	                <p class="mar-b leftArea wid-50"><span id="one_months_ago" class="top mar-l">月总销量</span><span id="month_consume1" class="bottom mar-l">${member.first_month_consume} / ${member.first_month_consume_need}</span></p>
	            </li>
	            <li class="clearfix two">
	                <div class="leftArea wid-50"><p class=" leftArea bor-r"><span class="top">邀请好友</span><span id="children_num" class="bottom">${member.children_num} / ${member.children_num_need}</span></p></div>
	                <p class=" mar-b leftArea wid-50"><span id="now_months" class="top mar-l">月总销量</span><span id="month_consume2" class="bottom mar-l">${member.second_month_consume} / ${member.second_month_consume_need}</span></p>
	            </li> --%>
	        </ul>
	        <h4>* 完成本月考核，下月可继续维持${member.level_name}等级。</h4>
	        <h4>* 考核未满，下月将降级至${expertLevel_name}</h4>
	    </div>
	<%--      <c:if test="${ member.special_yn =='Y'}">
		   <h2>还款状态</h2>
			<ul class="voucher voucher2">
		        <li class="clearfix">
		            <p class="leftArea">已还本金${member.special_repay-member.lock_cash}元</p>
		            <p class="rightArea">还需还款${member.special_cash-(member.special_repay-member.lock_cash)}元</p>
		        </li>
		        <li class="po-r proportion">
		            <div  style="width:100%;position:relative;">
			        	<p>
			            	<span class="po-a progress-bar" style="width:${((member.special_repay-member.lock_cash)/member.special_cash)*100}%;">
			            		<span class="po-a dot"></span>
			            	</span>
			            </p>
		            </div>
		            <p class="po-a progress-bar-2"></p>
		        </li>
		    </ul>
	    </c:if> --%>
	    <h2>充值优惠</h2>
	    <ul class="recharge">
	        <li class="clearfix">
	            <p class="leftArea inner-1">券</p>
	           	<p class="leftArea inner-2">${ticket_name}充值（<fmt:formatNumber value="${member.rate*10}" pattern="#0.0" maxFractionDigits="1"/>折）</p>
	            <c:if test="${'ios'==os}">
	            	<p class="rightArea inner-3" onclick="fn_GoMemberTicketRecharge()">立即充值<span>&gt;</span></p>
	            </c:if>
	            <c:if test="${'wechat'==os ||'web'==os}">
	            	<p class="rightArea inner-3" onclick="GoMemberTicketRechargeForWE()"   id='{"name":"toRechargeTicket", "params": {"level":${member.level }}}'>立即充值<span>&gt;</span></p>
	            </c:if>
	            <c:if test="${'android'==os}">
	            	<p class="rightArea inner-3" onclick="android.openPage('com.uniplaza.fenx.mmine.certificate.activity.DeliveryRechargeActivity')">立即充值<span>&gt;</span></p>
	            </c:if>
	        </li>
	    </ul>
	     <div class="privilege-wrap">
	        <ul >
	            <h2>当前会员特权</h2>
	             <c:forEach items="${curAwardList}" var="c">
		            <c:if test="${c.awardId == 1}">
			            <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">零</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 2}">
			            <li class="distinct clearfix po-r current">
			                 <p class="po-a icon-prize">活</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 3}">
			           <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">助</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
			        <c:if test="${c.awardId == 4}">
			            <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">领</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
	            </c:forEach>
	        </ul>
	    </div>
    </c:if>
     <!-- 合伙人-->
 	<c:if test="${member.level==121 or member.level==200 or member.level==201}">
<%--  	<c:if test="${ member.special_yn =='Y'}">
		   <h2>还款状态</h2>
			<ul class="voucher voucher2">
		        <li class="clearfix">
		            <p class="leftArea">已还本金<fmt:formatNumber value="${member.special_repay-member.lock_cash}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		            <p class="rightArea">还需还款<fmt:formatNumber value="${member.special_cash-(member.special_repay-member.lock_cash)}" pattern="#0.00" maxFractionDigits="2"/>元</p>
		        </li>
		        <li class="po-r proportion">
		            <div  style="width:100%;position:relative;">
			        	<p>
			            	<span class="po-a progress-bar" style="width:${((member.special_repay-member.lock_cash)/member.special_cash)*100}%;">
			            		<span class="po-a dot"></span>
			            	</span>
			            </p>
		            </div>
		            <p class="po-a progress-bar-2"></p>
		        </li>
		    </ul>
	    </c:if> --%>
		<h2>充值优惠</h2>
	    <ul class="recharge">
	        <li class="clearfix">
	            <p class="leftArea inner-1">券</p>
	            <p class="leftArea inner-2">${ticket_name}充值（<fmt:formatNumber value="${member.rate*10}" pattern="#0.0" maxFractionDigits="1"/>折）</p>
	            <c:if test="${'ios'==os}">
	            	<p class="rightArea inner-3" onclick="fn_GoMemberTicketRecharge()">立即充值<span>&gt;</span></p>
	            </c:if>
	            <c:if test="${'wechat'==os ||'web'==os}">
	            	<p class="rightArea inner-3" onclick="GoMemberTicketRechargeForWE()"   id='{"name":"toRechargeTicket", "params": {"level":${member.level }}}'>立即充值<span>&gt;</span></p>
	            </c:if>
	            <c:if test="${'android'==os}">
	            	<p class="rightArea inner-3" onclick="android.openPage('com.uniplaza.fenx.mmine.certificate.activity.DeliveryRechargeActivity')">立即充值<span>&gt;</span></p>
	            </c:if>
	        </li>
	    </ul>
	    <div class="privilege-wrap">
	        <ul >
	            <h2>当前会员特权</h2>
	            <c:forEach items="${curAwardList}" var="c">
		            <c:if test="${c.awardId == 1}">
			            <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">零</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 2}">
			            <li class="distinct clearfix po-r current">
			                 <p class="po-a icon-prize">活</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
		            <c:if test="${c.awardId == 3}">
			           <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">助</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
			        <c:if test="${c.awardId == 5}">
			           <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">补</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
			        <c:if test="${c.awardId == 6}">
			           <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">区</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
			        <c:if test="${c.awardId == 7}">
			           <li class="distinct clearfix po-r current">
			                <p class="po-a icon-prize">市</p>
			                <div class="">
			                    <p class="po-r prize-name">${c.name}</p>
			                    <p class="po-r prize-explain">${c.remark}</p>
			                </div>
			            </li>
			        </c:if>
	            </c:forEach>
	        </ul>
	    </div>
	</c:if>
</div>
</body>
</html>